var gulp =require('gulp');
var webpack = require('gulp-webpack');
var conf = require('./webpack.config');
gulp.task('webpack', function () {
	return gulp
		.src("./src/")
		.pipe(webpack(conf))
		.pipe(gulp.dest('./build'));
});

gulp
.src("./src/")
.pipe(webpack(conf))
.pipe(gulp.dest('./build'));
gulp.task('default', function () {
	gulp.watch('./src/*/*',['webpack']);
	gulp.watch('./src/*',['webpack']);
})